/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */

package org.ipig.commons.interceptor;

/**
 * 重复处理拦截器
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: RepeatProcessInterceptor.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
public interface RepeatProcessInterceptor<T> {
    default boolean preProcess(T handler) throws Exception {
        return true;
    }

    default void postProcess(T handler) throws Exception {

    }

    default void afterCompletion(T handler) throws Exception {

    }
}
